#include "includes.h"



int main(void){
	
	unsigned char temp;
	//TCNT1 = 0; // reset counter
	//input_capture_init();
	PORTA = 0x00;
	PORTD = 0;
	DDRD = 0xff;
	adc_init(0);
	
	//buzzer_init();
    
	while(1){
	/*lcd_putc('0'+input_timer/100);
	lcd_putc('0'+input_timer/10);
	lcd_putc('0'+input_timer%10);
	*/
	
	_delay_ms(50);
	_delay_ms(50);
	_delay_ms(50);
	temp = adc_read();
	if(temp<100) PORTD = 0xff;
	else PORTD = 0;
	
	
	
    }
    return 0;
}
